<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%String path = request.getContextPath(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>${sessionScope.SESSION_STREET_THEME.thSiteTitle}</title>
	<link href="<%=path %>/res/themes/layout/layout.css" rel="stylesheet" type="text/css"/>
	<link href="<%=path %>/res/themes/layout/msglist.css" rel="stylesheet" type="text/css"/>
	<link href="<%=path %>/res/themes/${sessionScope.SESSION_STREET_THEME.thStyle}/css/style.css" rel="stylesheet" type="text/css"/>
	<link href="<%=path %>/pages/inc/themes.jsp" rel="stylesheet" type="text/css"/>
	
	<script type="text/javascript" src="<%=path %>/res/js/jquery.js"></script>
        <script type="text/css">
            .list-pad .msg-list td{
                    border-bottom: #ccc 1px dashed;
            }
            .list-pad .msg-list .list-title{
                    background-image: url("../imgs/l_dian.jpg");
            }
            .list-pad .msg-list tr:hover{
                    background-color: #d5f0fb;
}
        </script>
</head>
<body>
<div class="page">
	<div class="header">
		<%@ include file="inc/header.jsp"%>
	</div>
	<div class="body">
		<div class="left">
			<%@ include file="inc/leftMenuTree.jsp"%>
		</div>
		<div class="tpad">
			<div class="list-pad">
				<div class="sys-title1 sys-title-bg1">
					<span class="sys-title-txt1 sys-title-txtbg sys-title-color1">
					<img class="sys-title-ico2" src="<%=path %>/res/themes/${sessionScope.SESSION_STREET_THEME.thStyle}/imgs/ico_list.gif" />
					<s:property value="currSubMenu.menuName"/>
					</span>
				</div>
				<div  class="list-body">
					<table class="msg-list" cellpadding="0" cellspacing="0" width="100%">
                                            <s:if test='msgList != null && msgList.size() > 0'>
						<s:iterator var="msg" value="msgList" status="st">
                                                    <s:if test="#st.odd == true && #st.index==msgList.size()">
                                                             <tr>
                                                                 <td align="center"  valign="top">
                                                                     <div style=" vertical-align: top;float:left">
                                                                     	<img src="<%=path%><s:property value="#msg.msgCover"/>" width="150" height="200"/>
                                                                     </div>
                                                                     	<div style=" width: 200px;line-height:20px; vertical-align: center ;margin-top:8px;margin-left:8px;float:left" align="left">
                                                                             	${msg.msgContent}
                                                                        </div>
                                                                 </td>
                                                                 </tr>
                                                        </s:if>
							 <s:elseif test="#st.odd == true">
                                                             <tr>
                                                                 <td align="center"  valign="top">
                                                                        <div style=" vertical-align: top;float:left">
                                                                            <img src="<%=path%><s:property value="#msg.msgCover"/>" width="150" height="200"/>
                                                                        	</div>
                                                                        	<div style=" width: 200px;line-height:20px; vertical-align: center ;margin-top:8px;margin-left:8px;float:left" align="left">
                                                                             		${msg.msgContent}
                                                                             </div>                                                         </td>
                                                        </s:elseif>
                                                        <s:else>
                                                            <td align="center"  valign="top">
                                                                        <div style=" vertical-align: top;float:left">
                                                                            <img src="<%=path%><s:property value="#msg.msgCover"/>" width="150" height="200"/>
                                                                        	</div>
                                                                        	<div style=" width: 200px;line-height:20px; vertical-align: center ;margin-top:8px;margin-left:8px;float:left" align="left">
                                                                             		${msg.msgContent}
                                                                             </div>
                                                                 </td>
                                                        </tr>
                                                        </s:else>
                                                         
                                                    </s:iterator>
                                                </s:if>
					</table>
					<%@ include file="inc/page.jsp"%>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
	<div class="footer">
		<%@ include file="inc/footer.jsp"%>
	</div>
</div>
</body>
</html>